package com.woniu.order.service;

import com.woniu.order.entity.dto.DisplayChooseProductByUserDTO;
import com.woniu.entity.Result;
import com.woniu.order.entity.dto.QueryServiceOrderDto;
import com.woniu.order.mapper.OrderMapper;
import com.woniu.entity.PageResult;
import com.woniu.order.entity.OrderEndQuery;
import com.woniu.entity.PageResult;
import com.woniu.order.entity.OrderEndQuery;
import com.woniu.order.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface IOrderService extends IService<Order> {


    String displayChooseProductsByUser(DisplayChooseProductByUserDTO displayChooseProductByUserDTO, String username) throws Exception;

    Order getbyNo(String out_trade_no);

    List<Order> selectOrderListByUsername(String username);

    Order selectOrderByOrderNOAndUsername(String orderNo, String username);

    //List<Order> getOrderInfoByUserId(String );
    Result queryServiceOrder(Integer currentPage,Integer currentSize,QueryServiceOrderDto queryServiceOrderDto);

    Result shopQueryOrder(String shopId, String no);
    PageResult<Order> queryOrderThroughBackEnd(Integer currentPage, Integer pageSize, OrderEndQuery orderEndQuery);

    Result queryServiceStatistics(Integer currentPage, Integer currentSize, QueryServiceOrderDto queryServiceOrderDto);
}
